
#if !defined(__GYWALKINGAID_COMMONFUN_INCLUDED__)
#define __GYWALKINGAID_COMMONFUN_INCLUDED__


CString		GetResString(DWORD dwStringId);

int			GYMsgBox(DWORD dwStringId, DWORD dwType);
int			GYMsgBox(CString strInfo, DWORD dwType);
int			DataErrorMsgBox(CString strSourceFile, int nLineNumber, CString strSQL, CString strError);

BOOL		IsFileExist(LPCTSTR lpFile);
BOOL		SplitPath(const LPTSTR lpszPath, LPTSTR lpszDriver, LPTSTR lpszDir, LPTSTR lpszFileName, LPTSTR lpszExt);

CString		GetExePath();
CString		GetAppDataPath();
CString		GetIniFile();

CString		GetConfigValue(CString strKey);
BOOL		SetConfigValue(CString strKey, CString strValue);

CString		EncryptString(const TCHAR* szIn);
CString		DecryptString(const TCHAR* szIn);

CString		GetIP();
CString		GetMAC();
CString		GetMAC2();

BOOL		IsLeapYear(int nYear);
BOOL		IsValidDateTime(int nYear, int nMonth, int nDay, int nHour, int nMinute, int nSecond);

CString		GetMySQLDumpCmd();

#endif//__GYWALKINGAID_COMMONFUN_INCLUDED__